package com.atguigu.yygh.hosp.testmongo;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: yygh_parent
 * @author: Mr.Zhuo
 * @create: 2022-03-11 10:33
 **/
@Repository
public interface UserRepository extends MongoRepository<User,String> {
    List<User> findByNameAndAge(String name, int age);

    List<User> getByNameLike(String name);
}
